public class MainClass {
	public static void main(String[] args) throws InstantiationException, IllegalAccessException, ClassNotFoundException {
		FruitFactory ff = new AppleFactory();
		Fruit apple = ff.getFruit();
		apple.get();
		
		FruitFactory ff1 = new BananaFactory();
		Fruit banana = ff1.getFruit();
		banana.get();
	}
}
